package com.asurplus.weixin.utils;

/**
 * 微信常量使用类
 */
public interface WeiXinConst {

    /**
     * 获取 ACCESS_TOKEN
     *
     * @method GET
     */
    String ACCESS_TOKEN_GET = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET";

    /**
     * 获取微信服务器IP地址
     *
     * @method GET
     */
    String CALLBACK_IP_GET = "https://api.weixin.qq.com/cgi-bin/get_api_domain_ip?access_token=ACCESS_TOKEN";

    /**
     * 自定义菜单创建
     *
     * @method POST
     */
    String CUSTOM_MENU_CREATE = "https://api.weixin.qq.com/cgi-bin/menu/create?access_token=ACCESS_TOKEN";

    /**
     * 自定义菜单查询
     *
     * @method GET
     */
    String CUSTOM_MENU_SELECT = "https://api.weixin.qq.com/cgi-bin/menu/get?access_token=ACCESS_TOKEN";

    /**
     * 自定义菜单删除
     *
     * @method GET
     */
    String CUSTOM_MENU_REMOVE = "https://api.weixin.qq.com/cgi-bin/menu/delete?access_token=ACCESS_TOKEN";

    /**
     * 发送文本消息
     *
     * @method POST
     */
    String TEXT_MESSAGE_SEND = "https://api.weixin.qq.com/cgi-bin/message/custom/send?access_token=ACCESS_TOKEN";

    /**
     * 发送模板消息
     *
     * @method POST
     */
    String TEMPLATE_MESSAGE_SEND = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=ACCESS_TOKEN";

    /**
     * 关注公众号时，获取用户信息
     *
     * @method GET
     */
    String USER_INFO_GET = "https://api.weixin.qq.com/cgi-bin/user/info?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN";

    /***************************************授权接口 start***************************************/

    /**
     * 获取 AuthorizationCode
     *
     * @method GET
     */
    String AUTHORIZATION_CODE = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=APPID&redirect_uri=REDIRECTURI&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect";

    /**
     * 获取 AccessToken
     *
     * @method GET
     */
    String ACCESS_TOKEN = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";

    String token = "https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code";

    /**
     * 获取用户信息
     *
     * @method GET
     */
    String USER_INFO = "https://api.weixin.qq.com/sns/userinfo?access_token=ACCESS_TOKEN&openid=OPENID&lang=zh_CN";

    /***************************************授权接口 end***************************************/
}
